import http from "@/utils/http"
//获取出库申请列表
export function Outbound_tabList(params) {
   return http.post('/by-outbound-apply/page-outbound', params)
}
//获取表头统计
export function Outbound_statecount() {
   return http.get('/by-outbound-apply/groupby-statecount')
}
//获取国家信息
export function Outbound_state() {
   return http.get('/sys-country/')
}
//根据国家获取省
export function Outbound_Province(params) {
   return http.get('/sys-country/state/' + params)
}
//获取仓库数据
export function Outbound_warehouse(params) {
   return http.post('/by-warehouse/select', params)
}

//获取销售平台
export function Outbound_treeTag(params) {
   return http.post('/sys-tag-dictionary/treeTagDictionary', params)
}
//查询各SKU条数
export function SKU_select() {
   return http.get('/incoming-Order/list-items')
}
//查新增出库申请
export function Outbound_Add(params) {
   return http.post('/by-outbound-apply', params)
}
// //普通新增出库申请
// export function Outbound_Addwaybill(params) {
//     return http.post('//by-outbound-apply/ordinary-waybill',params)
// }
//查询详情信息
export function Outbound_rowInfo(params) {
   return http.get('/by-outbound-apply/' + params)
}

//提交订单
export function Outbound_submit(params) {
   return http.put('/by-outbound-apply/' + params)
}
//修改订单
export function Outbound_edit(params) {
   return http.put('/by-outbound-apply/updateOutbound', params)
}
//撤回订单
export function Outbound_recallt(params) {
   return http.get('/by-outbound-apply/recall/' + params)
}
//批量删除
export function Outbound_del(params) {
   return http.put('/by-outbound-apply/delete-batchByState', params)
}
//批量提交
export function OutboundBatchByState_submit(params) {
   return http.put('/by-outbound-apply/batchby-State', params)
}
//导出运单表格
export function OutboundBatchByState_upDow() {
   return http.blob('/by-outbound-apply/upDow')
}
//批量选择取消签收服务
export function OutboundBatchByState_noSign(params) {
   return http.put('/by-outbound-apply/is-sign/0', params)
}
//批量选择签收服务
export function OutboundBatchByState_yesSign(params) {
   return http.put('/by-outbound-apply/is-sign/1', params)
}
//批量取消自有运单
export function OutboundBatchByState_cancelEctn(params) {
   return http.put('/by-outbound-apply/cancel-ectn/', params)
}
//批量设置暂缓处理
export function OutboundBatchByState_updateDefer(url, params) {
   return http.post('/by-outbound-apply/update-defer/' + url, params)
}
//批量设置暂缓处理
export function OutboundBatchByState_updateIsectn(params) {
   return http.put('/by-outbound-apply/update-isectn', params)
}
//删除上传文件
export function OutboundBatchByState_removefile(params) {
   return http.post('/by-file/removeBatchFile', params)
}
// //导出出库订单列表
export function OutboundBatchByState_excel(data, params) {
   return http.blobJson('/by-outbound-apply/excel/' + data, params)
}
// //删除订单详情中的数据
export function Outbounddel_apply(params) {
   return http.put('/by-outbound-apply/update-record/' + params)
}
//根据仓库查询SKU
export function Outbounddel_housPdt(params) {
   return http.get('/by-behalf-stock/stock/' + params)
}
//根据查询SKU 库存信息
export function Outbounddel_pageBpi(params) {
   return http.post('/by-product-info/pageBpi', params)
}
//根据物流商查询物流方式
export function Outbounddel_carrierServe(params) {
   return http.get('/by-carrier/carrier-serve/' + params)
}
//物流商查询下拉
export function Outbounddel_carrier() {
   return http.get('/by-carrier')
}


//批量设置物流商
export function Outbounddel_batchCarrier(params) {
   return http.post('/by-outbound-order/batchCarrier', params)
}


//库存删减操作
export function updateRecord(params) {
   return http.put('/by-outbound-apply/update-record/' + params)
}
//根据客户ID仓库ID查询SKU
export function getStockTerminal(warehousingId,tenantId) {
   return http.get('/by-behalf-stock/getStockTerminal/'+warehousingId+'/'+tenantId)
}


//根据运单号查询出库订单
export function Outbounddel_trackerCode(params) {
   return http.get('/by-outbound-order/waybillno-apply/' + params)
}

//订单扫描查询已交运的批次号
export function Outbounddel_shippedBatch(params) {
   return http.get('/by-batch-manage/shippedBatch/' + params)
}
//根据运单号+批次号查询出库订单
export function Outbounddel_waybillno(url,params) {
   return http.get('/by-outbound-order/waybillno-apply/'+url+'/' + params)
}






